package com.llf.Blog.Mapper;

import com.llf.Blog.Pojo.Type;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author llf
 * @since 2021-08-07
 */
@Repository
@Mapper
public interface TypeMapper extends BaseMapper<Type> {
    Type getById( @Param("id") Long id);
    List<Type> getAll();
    Boolean insertType(Type type);
    Boolean update(Type type);
    Boolean deleteById(@Param("id") long id);
    Type  getByName(@Param("name") String name);
    List<Type> getCountType();


}
